Health Cloud Patient Data Synchronization LWC - Source

(0 reviews)

Setup guide

Dependencies

  1. Deploy Mule API Health Cloud Patient Data Synchronization Process API - Implementation Template and all of the system APIs that support it.

Installing Lightning Web Component to Salesforce

  1. Use the following URL to install this package in your HealthCloud enabled org. Login with the username and password for the org that you wish to install the package into. https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5f000000GtIGAA0
  2. Approve the Install for "All Users".
  3. Step through the install wizard until the installation is complete.

Note: You may alternatively install the lightning web component from source code by downloading the asset (.zip file) and then follow the instructions in the provided README.md file.

Salesforce configuration

  1. Remote Site Access

    Before any Apex callout can call an external api, that api must be registered in the Remote Site Settings Page, or the call fails. To access the page, from Setup, enter Remote Site Settings in the Quick Find box, then select Remote Site Settings. Find the entry called 'patient_sync_prc_api' and edit it. Set the URL to Patient Sync Mule API.

  2. LWC Configuration

    The URL of the Patient Sync Mule API needs to be configured. To access the page, from Setup, enter Custom Metadata Types in the Quick Find box, and click the one labeled 'Patient Sync'. Next click the button 'Manage Patient Syncs' and then click the 'Edit' link for patientSync. Configure the baseUrl and set it to the URL of your Patient Sync Mule API. If the Source System you're using is cerner you can set that also. Now click the Save button.

  3. Add LWC to Page

    1. Navigate to a page within Salesforce, where PatientSearch needs to be setup. Example - Getting Started
    2. Use the gear icon at the top right to select edit page
    3. On the edit page menu, on the left side menu scroll to the bottom to find the custom component "patientSearch" and position it in the desired location on the page

      hc-lwc-epicSearchInstalled.png
    4. Save the page and exit Editor
    5. Test the installed LWC as shown in the following screenshot:

      patientSearchInAction.png

Editing the source code

Modification of the source code requires that the Salesforce CLI toolset is installed on the local machine that's performing the install.

These steps assumes that you've already performed the installation of the lightning web component into Salesforce org.

  1. First setup a new project directory to work in. See Create a Salesforce DX Project for instructions.
  2. Next authorize the org with the installed app. See the Salesforce Authorize an Org Using Web Server Flow for the cli instructions to setup your org.
  3. Next issue the following command which will pull the existing source code from the org and put it in the current directory under patient-sync-app/main/default.
sfdx force:source:retrieve -n patient-sync-app

Reviews

TypeCustom
OrganizationMulesoft
Published by
MuleSoft Organization
Published onDec 14, 2022
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.2